home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
examples
/
explog0.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
1KB
|
54 lines
unit Explog0;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, AdProtcl, AdPStat, AdTerm, AdPort;
type
TForm1 = class(TForm)
ApdComPort1: TApdComPort;
ApdTerminal1: TApdTerminal;
ListBox1: TListBox;
TransmitAll: TButton;
ApdProtocol1: TApdProtocol;
ApdProtocolStatus1: TApdProtocolStatus;
Label1: TLabel;
procedure ApdProtocol1ProtocolLog(CP: TObject; Log: Word);
procedure TransmitAllClick(Sender: TObject);
procedure ApdProtocol1ProtocolFinish(CP: TObject; ErrorCode: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.ApdProtocol1ProtocolLog(CP: TObject; Log: Word);
begin
if Log = lfTransmitOK then
ListBox1.Items.Add(ApdProtocol1.FileName);
end;
procedure TForm1.TransmitAllClick(Sender: TObject);
begin
ApdTerminal1.Active := False;
ApdProtocol1.StartTransmit;
end;
procedure TForm1.ApdProtocol1ProtocolFinish(CP: TObject;
ErrorCode: Integer);
begin
ApdTerminal1.Active := True;
ApdTerminal1.SetFocus;
end;
end.